package com.ssc.chain.tcfp.core.client;

/**
 * @author mingjian
 * @version 1.0
 * Create by 2025/7/10 17:21
 */
public interface UploadListener {

    /**
     * 上传开始
     */
    default void onStart(TcfpUploadRequest request, long totalBytes) {
    }

    /**
     * 上传进度回调
     */
    default void onProgress(TcfpUploadRequest request, long currentBytes, long totalBytes) {
    }

    /**
     * 上传成功
     */
    default void onSuccess(TcfpUploadRequest request) {
    }

    /**
     * 上传失败
     */
    default void onError(TcfpUploadRequest request, Exception e) {
    }
}
